﻿#pragma once

#include <QtWidgets/QWidget>
#include "ui_ExpendedImage.h"
#include <QMainWindow>
#include <QMouseEvent>
#include <QResizeEvent>
#include <QShowEvent>
#include "sysdef.h"
#include "riggerscene.h"
#include "anchoritem.h"

QT_BEGIN_NAMESPACE
namespace Ui { class ExpendedImageClass; };
QT_END_NAMESPACE

class ExpendedImage : public QWidget
{
	Q_OBJECT

public:
	ExpendedImage(QWidget* parent = nullptr);
	~ExpendedImage();
protected:
	void mousePressEvent(QMouseEvent* event) override;
	void resizeEvent(QResizeEvent* event) override;
	void showEvent(QShowEvent* event) override;

private slots:
	void on_graphicsView_customContextMenuRequested(const QPoint& pos);
private:
	Ui::ExpendedImageClass* ui;
	int ItemType;
	RiggerScene* p_RiggerScene = nullptr;
};
